/**
 * Author zhangqin
 */
var loadmodel=function(){
    $("#load_aaaaaamodel").remove();
    return {
	show:function(){
	    var css_type="<div class='loader-inner pacman'><div></div><div></div><div></div><div></div><div></div></div>";
	    /*if(type=1){
		css_type="<div class='loader-inner ball-grid-pulse'><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";
	    }else if(type=3){
		css_type="<div class=\"loader-inner line-spin-fade-loader\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";
	    }else if(type=4){
		css_type="<div class=\"loader-inner ball-spin-fade-loader\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";
	    }*/
	    var modeldiv=$("<div id='load_aaaaaamodel' style='display: block;  position: fixed;  top: 0%;  left: 0%;  width: 100%;  height: 100%;  background-color: black;  z-index:99999;  -moz-opacity: 0.7;  opacity:.70;  filter: alpha(opacity=70);'><div class='loader'  style='left: 50%;right: 50%;position:fixed;top: 50%;bottom:50%;'>"+css_type+"</div></div>");
	    $("body").append(modeldiv);
	},
	hide:function(){
	    $("#load_aaaaaamodel").remove();
	}
    };
}